/**      
 * @file		proceduralAbstraction.cpp
 * @description		Demonstrates procedural abstraction (a black box)	
 * @course		CSCI 123 Section 00000
 * @assignment		Lecture 4 - Sample 7
 * @date		mm/dd/yyyy	
 * @author		Brad Rippe (00000000) brippe@fullcoll.edu
 * @version		1.0
 */
#include <iostream>
using namespace std;

const double PERCENT_INCREASE = 0.085;	// only declare constant vars in global
					// scope
// function documentation left out for brevity
double calculateRetroPay(double salary);
double calculateRetroPay2(double salary);

/**
 * @return zero if the application executes successfully
 */
int main() {
	cout << "Calculating RetroPay1 ";
	cout << calculateRetroPay(30000.00) << endl;
	cout << "Calculating RetroPay2 ";
	cout << calculateRetroPay2(30000.00) << endl;
	return 0;
}

double calculateRetroPay(double salary) {
	return salary*(1+PERCENT_INCREASE);
}

double calculateRetroPay2(double salary) {
	double retroPay;
	retroPay = salary*PERCENT_INCREASE;
	retroPay += salary;
	return retroPay;
}
